<?php include('src/multimediaReproductor_cs.php');?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Reproductor</title>
 <link href="css/estilos.css" rel="stylesheet" type="text/css">
 <link rel="stylesheet" href="../scripts/fancybox/fancy.css" type="text/css" media="screen" /> 
 <script language="javaScript" type="text/javascript" src="../scripts/jquery.js"></script>
 <script language="javaScript" type="text/javascript" src="../scripts/jquery.flash.js"></script>
 <script language="javaScript" type="text/javascript" src="../scripts/jquery.simplemodal.js"></script>
 <script src="http://swfobject.googlecode.com/svn/tags/rc3/swfobject/src/swfobject.js" type="text/javascript"></script>

 <script language="javascript" type="text/javascript" src="../scripts/fancybox/jquery.fancybox-1.0.0.js"></script>
 
 	<!-- 
		include flowplayer JavaScript file that does  
		Flash embedding and provides the Flowplayer API.
	-->
	<script type="text/javascript" src="flowplayer-3.1.4.min.js"></script>
	
	<!-- some minimal styling, can be removed -->
	<link rel="stylesheet" type="text/css" href="style.css">

<script type="text/javascript">
<!--

jQuery(function($) {
$('#video_player').flash(
        { 
          src: 'player.swf',
          width: 320,
          height: 240,
		  menu: 'false',
		  wmode: 'transparent',
		  quality: 'high',
		  allowScriptAccess: 'always',
          flashvars: { file: '<?php echo $pelicula;?>',imagen: '<?php echo $thumbs;?>'}
        }, 
        { version: 8 }
    );

});
    //se pintan los campos para ser editados
	
	//cierre de pop up
	function cancelado(){
	 window.top.$.fn.fancybox.close();
	}
//-->
</script>
</head>
<body>
       
 <?php if($tipo == 2){?>
 <p>
    <embed width="425" height="350" type="application/x-shockwave-flash" src="<?php echo $pelicula;?>" pluginspage="http://www.adobe.com/go/getflashplayer" flashvars=""/>
</p>

		<!--<div style="display:block; width:320px; height:240px; margin:0 auto" id="video_player"></div>-->
 <?php }else{?>
  <div>
	<!--<script type='text/javascript' src='http://www.jeroenwijering.com/embed/swfobject.js'></script>			
		<div id='preview'>This div will be replaced</div>			
			<script type='text/javascript'>
			var s1 = new SWFObject('http://www.jeroenwijering.com/embed/player.swf','player','320','240','9','#ffffff');
			s1.addParam('allowfullscreen','true');
			s1.addParam('allowscriptaccess','always');
			s1.addParam('wmode','opaque');
			s1.addParam('flashvars','file=<?php echo $pelicula;?>&image=<?php echo $thumbs;?>&controlbar=over&autostart=true');
			s1.write('preview');
			</script>-->
			<!-- START OF THE PLAYER EMBEDDING TO COPY-PASTE -->
	
	<!--<object id="player" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" name="player" width="400" height="315">
		<param name="movie" value="player.swf" />
		<param name="allowfullscreen" value="true" />
		<param name="allowscriptaccess" value="always" />
		<param name="flashvars" value="file=video.flv&image=preview.jpg" />
		<embed
			type="application/x-shockwave-flash"
			id="player2"
			name="player2"
			src="player.swf"
			width="400" 
			height="315"
			allowscriptaccess="always" 
			allowfullscreen="true"
			flashvars="file=video.flv&image=preview.jpg" 
		/>
	</object>-->
	
	<!--<object id="player_video" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" class="player_video" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" name="player" width="400" height="315">
		<embed height="405" align="middle" width="500" wmode="transparent" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" allowfullscreen="true" allowscriptaccess="always" name="player_video" flashvars="file=video.flv&image=http://static.canalcaracol.com/sites/caracoltv.com/files/img_videos/73ba50cb50d3107f754844200e59abb5.jpg&cortflv=video.flv&amp;corturl=http://ads.us.e-planning.net/ei/3/46d7/2fd7cfe758a58668?it=0&amp;p=9c38babeec09732e&amp;pb=dfc07fbf2879790a&amp;rnd=$RANDOM" bgcolor="#ffffff" quality="high" src="http://static.canalcaracol.com/player_cortinilla/player.swf">
	</object>-->
  
 		<a  
			 href="<?php echo $pelicula;?>"  
			 style="display:block;width:520px;height:330px"  
			 id="player"> 
		</a> 
    
    		<!-- this will install flowplayer inside previous A- tag. -->
		<script>
			flowplayer("player", "../flowplayer-3.1.5.swf");
		</script>
	
	<!-- END OF THE PLAYER EMBEDDING -->
	</div>
  <?php }?>

</body>
</html>
